package cn.seczone.iast.agent;


/**
 * @author XieShaoping
 */
public class TestController {

    Object test(String a, String b, String c) {
        try {
            System.out.println("seczone-rasp");
        } catch (Exception e) {

        }
        return "hello world！";
    }

    void test1(String a, String b, String c) {
        System.out.println("开始");
        try {
            b = "就是这个";
            InjectMethod.beforeCode(this, a, b);
        } catch (Exception e) {
            System.out.println("haha");
        }
        for (int i = 0; i < 99; i++) {
            System.out.println(b);
        }
        System.out.println("结束");
    }

    /**
     * 目标：获取入参与返回值
     */
    Object test2(String a, int b, boolean c) throws Exception {
        Object[] obj = new Object[]{a, b, c};
        InjectMethod.afterCode(obj);
        return obj;
    }

}
